package cn.hyl.design.proxy;

/**
 * TestBuyer
 *
 * @author hyl
 * @date 2025-06-09
 */
public class TestBuyer {
    public static void main(String[] args) {
//        // 中介
//        System.out.println("找房源");
//        System.out.println("找户型");
//        System.out.println("找价格");
//
//        //我
//        System.out.println("看房。。");
//
//        //中介
//        System.out.println("签约。。");
//        System.out.println("签约成功");


//        Buyer buyer = new IntermediaryImpl(new RealBuyer()); //买房者通过中介带真正的买人人去看房
//        buyer.havealook();

        Buyer buyer = IntermediaryJdkProxyFactory.create(new RealBuyer());
        buyer.havealook();
    }
}
